<template>
	<div class="bg-white">
		<div class="shadow rounded overflow-hidden mt-3">
			<div class="bg-main p-2 justify-content-between d-flex">
					<div class="text-xs">提款记录详细</div>
					<div class="text-xs">{{jltq.tqjlid}}</div>
			</div>
			<div>
				<Row>
					<Col class="p-1" :xs="24" :sm="24" :md="12" :lg="8" :xl="6" :xxl="6">
						<div class="shadow rounded p-2 ">
							<div class="d-flex justify-content-between">
								<span>教练id</span>
								<span class="text-xss">{{jltq.jlid}}</span>
							</div>
							<div class="d-flex justify-content-between">
								<span>教练OPENID</span>
								<span class="text-xss">{{jltq.openid}}</span>
							</div>
							<div class="d-flex justify-content-between">
								<span>教练名称</span>
								<span>{{jltq.jlname}}</span>
							</div>
							<div class="d-flex justify-content-between">
								<span>提取金额</span>
								<span>¥{{jltq.amount}}</span>
							</div>
							<div class="d-flex justify-content-between">
								<span>抽成比例</span>
								<span>{{jltq.ccbl}}</span>
							</div>
							<div class="d-flex justify-content-between">
								<span>实际金额</span>
								<span class="text-danhong">¥{{jltq.sjje}}</span>
							</div>
							<div class="d-flex justify-content-between">
								<span>余额</span>
								<span>¥{{jltq.amount}}</span>
							</div>
							<div class="d-flex justify-content-between">
								<span>提取时间</span>
								<span>{{jltq.ct}}</span>
							</div>
							<div class="d-flex justify-content-between">
								<span>提取状态</span>
								<span class="text-danhong" v-if="jltq.zt == 'R'">已提取</span>
								<span class="text-danhong" v-if="jltq.zt == 'F'">已到账</span>
							</div>
						</div>
					</Col>
				</Row>
			</div>
			
<!-- 			<div class="shadow rounded overflow-hidden mt-3">
				<div class="bg-main p-2">
					<span>客户报名记录详细</span>
				</div>
				<div>
					<Row class="">
						<Col v-for="(bm,index) in clientbms" :key="index"
						class="p-1" :xs="24" :sm="24" :md="12" :lg="8" :xl="6" :xxl="6">
							<div class="shadow rounded p-2">
								<div class="p-2">
									<div>客户报名记录{{bm.bmid}}</div>
								</div>
								<div class="p-2 d-flex justify-content-between">
									<div>客户昵称</div>
									<span>{{bm.nc}}</span>
								</div>
								<div class="p-2 d-flex justify-content-between">
									<div>课程名称</div>
									<span>{{bm.kcname}}</span>
								</div>
								<div class="p-2 d-flex justify-content-between">
									<div>课程价格</div>
									<span>{{bm.pri}}</span>
								</div>
								<div class="p-2 d-flex justify-content-between">
									<div>课程开始日期</div>
									<span>{{bm.kechengst}}</span>
								</div>
								<div class="p-2 d-flex justify-content-between">
									<div>课程结束日期</div>
									<span>{{bm.kechenget}}</span>
								</div>
							</div>
						</Col>
					</Row>
				</div>
			</div> -->

		</div>
		<div>
			<Page class="text-right mt-3" :page-size="tableInfo.size" @on-change="pageSearch"
				:total="tableInfo.total" />
		</div>
	</div>
	

</template>

<script>
	export default {
		data() {
			return {
				tableInfo: {
					current: 1,
					size: 10,
					total: 0
					},
				jltq: {},
				clientbms:[]
			}
		},
		created: function() {
			this.jltq.tqjlid = this.$route.query.tqjlid;
			this.loadData();
			this.tableInfo.current = 0;
		},
		methods: {
			loadData: function() {
				this.http.get({
					url: "/jl/jltkjl/info",
					param: {
						tqjlid: this.jltq.tqjlid,
						current: this.tableInfo.current,
						size: this.tableInfo.size
					}
				}).then(res => {
					console.log(res);
					this.tableInfo.current = res.aclientbms.current;
					this.tableInfo.size = res.aclientbms.size;
					this.jltq = res.jltq;
					this.tableInfo.total = res.aclientbms.total;
					this.clientbms = res.aclientbms.records;
				});
			},
			pageSearch: function(changedPage) {
				this.tableInfo.current = changedPage;
				this.loadData();
			}
}
	}
</script>

<style>
</style>